package com.ruoyi.alipay.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class PaymentSettlement extends BaseEntity {
    /** 支付ID */
    private Long id;
    
    /** 商户订单号 */
    @Excel(name = "商户订单号")
    private String outTradeNo;
    
    /** 支付宝交易号 */
    @Excel(name = "支付宝交易号")
    private String tradeNo;
    
    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal totalAmount;
    
    /** 交易状态 */
    @Excel(name = "交易状态", readConverterExp = "WAIT_BUYER_PAY=交易创建,TRADE_CLOSED=交易关闭,TRADE_SUCCESS=支付成功,TRADE_FINISHED=交易完成")
    private String tradeStatus;
    
    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;
    
    /** 支付时间 */
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date gmtPayment;
    
    /** 最后修改时间 */
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;
    
    /** 买家ID */
    @Excel(name = "买家ID")
    private String buyerId;
    
    /** 卖家ID */
    @Excel(name = "卖家ID")
    private String sellerId;
    
    /** 用户ID */
    private Integer userId;
    
    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;
} 